]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appMenu: Disable app menu during startup animations
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 10 Jul 2012 20:14:11 +0000 (22:14 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 10 Jul 2012 20:36:45 +0000 (22:36 +0200)
When activating the app menu while displaying a startup notification
animation, the application shown in the menu does not match the
application providing the menu. To avoid this case, make the menu
button unreactive while playing the animation.

https://bugzilla.gnome.org/show_bug.cgi?id=672322

js/ui/panel.js

index a06cc92b595576c5fe0bb5cc14c4aef1fae5ae81..c969381af98ed4d299f44b07ba853b1fdfc11154 100644 (file)
@@ -346,6 +346,7 @@ const AppMenuButton = new Lang.Class({
             return;
 
         this._stop = true;
+        this.actor.reactive = true;
         Tweener.addTween(this._spinner.actor,
                          { opacity: 0,
                            time: SPINNER_ANIMATION_TIME,
@@ -360,6 +361,7 @@ const AppMenuButton = new Lang.Class({
 
     startAnimation: function() {
         this._stop = false;
+        this.actor.reactive = false;
         this._spinner.actor.show();
     },